package wolfcode.luowowo.test;

import lombok.Getter;
import lombok.Setter;

/**
 * 枚举类特点:
 *  1.构造器是私有的
 *  2.枚举定义好之后,枚举实例个数就确定
 *  3.剩下操作跟普通类一样
 */
@Getter
public enum MyDate {

    DATE1("asdf",2L), DATE2("fdas",1L);

    @Setter
    private String prefix;
    @Setter
    private Long time;

    private MyDate(String prefix,Long time){
        this.prefix = prefix;
        this.time = time;
    }


}
